From e456856d696b58b0a790838d15309c933656fddf Mon Sep 17 00:00:00 2001 From: GPSBabel <12013583+GPSBabelDeveloper@users.noreply.github.com> Date: Wed, 5 Apr 2023 07:17:16 -0500 Subject: [PATCH] Disallow 'fields' when writing unicsv (#1059) This closes https://github.com/GPSBabel/gpsbabel/issues/1042 --- unicsv.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unicsv.cc b/unicsv.cc index d96c248f3..3067e54f1 100644 --- a/unicsv.cc +++ b/unicsv.cc @@ -1705,6 +1705,10 @@ UnicsvFormat::unicsv_waypt_disp_cb(const Waypoint* wpt) void UnicsvFormat::wr_init(const QString& fname) { + if (opt_fields) { + fatal(FatalMsg() << MYNAME << + ": option 'fields' is not supported on output"); + } fout = new gpsbabel::TextStream; fout->open(fname, QIODevice::WriteOnly, MYNAME, opt_codec); fout->setRealNumberNotation(QTextStream::FixedNotation); -- 2.30.2